package com.zyh.entity;

import java.util.Arrays;

public class RoleResourceDto {
    private Integer roleId;
    private Integer[] resourceIds;

    public RoleResourceDto(Integer roleId, Integer[] resourceIds) {
        this.roleId = roleId;
        this.resourceIds = resourceIds;
    }

    public RoleResourceDto() {
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer[] getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(Integer[] resourceIds) {
        this.resourceIds = resourceIds;
    }

    @Override
    public String toString() {
        return "RoleResourceDto{" +
                "roleId=" + roleId +
                ", resourceIds=" + Arrays.toString(resourceIds) +
                '}';
    }
}
